<?php

namespace Medicina\BackendBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class UserPerfilType extends AbstractType {

    public function buildForm(FormBuilder $builder, array $options) {
        $builder
                ->add('apellido')
                ->add('nombre')
                ->add('email')
                ->add('telefono')
                ->add('nombre')
                ->add('apellido')
                ->add('dni', 'text', array('attr' => array('class' => "input-small")))
                ->add('direccion', 'textarea', array('required' => false))
                ->add('codigopostal', 'text', array('label' => 'Codigo Postal'))
        ;
    }

    public function getName() {
        return 'UserPerfilType';
    }

}